package com.heima.admin.service.impl;

import com.heima.admin.service.AdAuthService;
import com.heima.apis.user.IApAuthClient;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.AuthDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class AdAuthServiceImpl implements AdAuthService {
    private final IApAuthClient iApAuthClient;

    public AdAuthServiceImpl(IApAuthClient iApAuthClient) {
        this.iApAuthClient = iApAuthClient;
    }

    /**
     * 用户审核查询列表
     * @param authDto
     * @return
     */
    public ResponseResult listAuth(AuthDto authDto){
        return iApAuthClient.listAuth(authDto);
    }


    /**
     * 审核失败
     * @param authDto
     * @return
     */
    public ResponseResult authFail(AuthDto authDto){
        return iApAuthClient.authFail(authDto);
    }

    /**
     * 审核成功
     * @param authDto
     * @return
     */
    public ResponseResult authPass(AuthDto authDto){
        return iApAuthClient.authPass(authDto);
    }

}
